﻿using System.Windows;

namespace LaunchPad.Core.Dialogs
{
    /// <summary>
    /// Interaction logic for ProductDialog.xaml
    /// </summary>
    public partial class ProductDialog : Window
    {
        public ProductDialog()
        {
            InitializeComponent();
        }

        private void UseAsLeadInButtonClick(object sender, RoutedEventArgs e)
        {
            var product = DataContext as Product;
            product.LeadIn = product.Characterization.AverageAdjustedApex;
        }
    }
}
